
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.NoticeInfo;
import com.sasis.dao.NoticeInfoDao;
import com.sasis.service.NoticeInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class NoticeInfoManagerImpl extends BaseManager implements NoticeInfoManager {
    private NoticeInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setNoticeInfoDao(NoticeInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.NoticeInfoManager#getNoticeInfos(com.sasis.model.NoticeInfo)
     */
    public List getNoticeInfos(final NoticeInfo noticeInfo) {
        return dao.getNoticeInfos(noticeInfo);
    }

    /**
     * @see com.sasis.service.NoticeInfoManager#getNoticeInfo(String id)
     */
    public NoticeInfo getNoticeInfo(final String id) {
        return dao.getNoticeInfo(new Integer(id));
    }

    /**
     * @see com.sasis.service.NoticeInfoManager#saveNoticeInfo(NoticeInfo noticeInfo)
     */
    public void saveNoticeInfo(NoticeInfo noticeInfo) {
        dao.saveNoticeInfo(noticeInfo);
    }

    /**
     * @see com.sasis.service.NoticeInfoManager#removeNoticeInfo(String id)
     */
    public void removeNoticeInfo(final String id) {
        dao.removeNoticeInfo(new Integer(id));
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
